package com.atguigu.system.manager;

import com.atguigu.model.system.SysRole;
import com.atguigu.model.vo.role.SysRoleQueryReqVo;
import com.atguigu.model.vo.role.SysRoleQueryRespVo;
import com.atguigu.system.mapper.SysRoleMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 * SysRoleManager
 * </p>
 *
 * @author flyduck
 * @since 2023/10/24
 */
@Component
public class SysRoleManager extends ServiceImpl<SysRoleMapper, SysRole> {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    /**
     * 条件分页查询
     * @param pageParam
     * @param sysRoleQueryReqVo
     * @return
     */
    public Page<SysRoleQueryRespVo> selectPage(Page<SysRole> pageParam, SysRoleQueryReqVo sysRoleQueryReqVo) {
        Page<SysRoleQueryRespVo> page = sysRoleMapper.selectPage(pageParam,sysRoleQueryReqVo);
        return page;
    }
}
